﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Wix.Aura.Common {
	public class Category : IXmlSerializable {
		private Category() { }

		public Category(Guid id, string qualifier) {
			Id = id;
			Qualifier = qualifier;
		}

		public Guid Id { get; set; }
		public string AppData { get; set; }
		public string Feature { get; set; }
		public string Qualifier { get; set; }

		public System.Xml.Schema.XmlSchema GetSchema() {
			throw new NotImplementedException();
		}

		public void ReadXml(System.Xml.XmlReader reader) {
			throw new NotImplementedException();
		}

		public void WriteXml(System.Xml.XmlWriter writer) {
			writer.WriteStartElement("Category");
			writer.WriteAttribute("Id", Id);
			writer.WriteAttribute("AppData", AppData);
			writer.WriteAttribute("Feature", Feature);
			writer.WriteAttribute("Qualifier", Qualifier);
			writer.WriteEndElement();
		}
	}
}
